{
    "targets": [
        {
            "target_name": "addon",
            "sources": [
                "./src/addon.cc",
                "./src/player.cc",
                "./src/prepare_worker.cc",
                "./src/play_worker.cc",
                "./src/seek_worker.cc",
            ],
            "include_dirs":[
                "<!(node -e \"require('nan')\")",
                "./include"
            ],
            "conditions": [
                [
                    "OS==\"win\"", {
                        "libraries": [
                            "../native-lib/avformat.lib",
                            "../native-lib/avcodec.lib",
                            "../native-lib/avutil.lib",
                            "../native-lib/swresample.lib",
                            "../native-lib/SDL2.lib",
                            "../native-lib/rubberband-library.lib"
                        ],
                        "copies": [{
                            "files": [
                                "<(module_root_dir)/native-lib/avformat-58.dll",
                                "<(module_root_dir)/native-lib/avcodec-58.dll",
                                "<(module_root_dir)/native-lib/avutil-56.dll",
                                "<(module_root_dir)/native-lib/swresample-3.dll",
                                "<(module_root_dir)/native-lib/SDL2.dll",
                            ],
                            "destination":"<(module_root_dir)/build/Release"
                        }]
                    }
                ]
            ]
        }
    ]
}
